package com.cp.admin.modular.user.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 群聊成员表
 * </p>
 *
 * @author lkaeiou123
 * @since 2020-08-31
 */
@TableName("chatgroup")
public class Chatgroup extends Model<Chatgroup> {

    private static final long serialVersionUID = 1L;

    /**
     * 群聊id
     */
    @TableId("chatgroup_id")
    private Long chatgroupId;
    /**
     * 成员id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 1 在群内 -1离群
     */
    private Integer status;
    /**
     * 进群时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getChatgroupId() {
        return chatgroupId;
    }

    public void setChatgroupId(Long chatgroupId) {
        this.chatgroupId = chatgroupId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.chatgroupId;
    }

    @Override
    public String toString() {
        return "Chatgroup{" +
        "chatgroupId=" + chatgroupId +
        ", userId=" + userId +
        ", status=" + status +
        ", createTime=" + createTime +
        "}";
    }
}
